# your-is-android

```bash
npm i your-is-android
```

### isAndroid([userAgent])
- `userAgent` <[string]> 浏览器 ua 信息。默认 `navigator.userAgent`
- return <[boolean]> 是否安卓环境

判断当前是否安卓浏览器环境

```js
import isAndroid from 'your-is-android'

// 当前环境
isAndroid()

// 手动传入
isAndroid('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36')
```

[string]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type "String"
[boolean]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type "Boolean"
